package com.es.poem.repository;

//自定义接口

import com.es.poem.es.People;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface PeopleRepository extends ElasticsearchRepository<People,String> {

    //根据name查询
    // 具体查看：https://docs.spring.io/spring-data/elasticsearch/docs/3.1.20.RELEASE/reference/html/
    // 拉倒下面，或搜：Table 2. Supported keywords inside method names
    List<People> findByName(String name);
}
